using Rsd.Dudu;
using Rsd.Dudu.ModelProvider;
using Rsd.Dudu.ORM;
using Rsd.Faith.Core;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;

namespace Rsd.Faith.Models
{
    /// <summary>
    /// 整栋使用 楼栋流水 记录 
    /// </summary>
    [Table("book_楼栋分账户明细", "book__lou_dong_ming_xi_zhang", "id")]
    [Serializable]
    public class BookLouDongMingXiZhangModel : Rsd.Faith.Core.ModelBase
    {

        /// <summary>
        /// 账户编号
        /// </summary>
        [TableIndex(TableIndexType.Unique, TableIndexUsing.BTree)]
        [StringType("zhang_hu_bian_hao", "账户编号", 20, 50)]
        [DisplayName("账户编号")]
        public string ZhangHuBianHao { get; set; }


        /// <summary>
        /// 小区编号
        /// </summary>
        [TableIndex(TableIndexType.Normal, TableIndexUsing.BTree)]
        [StringType("xiao_qu_bian_hao", "小区编号", 21, 20)]
        [DisplayName("小区编号")]
        public string XiaoQuBianHao { get; set; }

        /// <summary>
        /// 楼栋号
        /// </summary>
        [StringType("lou_dong_hao", "楼栋号", 22, 20)]
        [DisplayName("楼栋号")]
        public string LouDongHao { get; set; }

        /// <summary>
        /// 建账日期
        /// </summary>
        [DateTimeFormat("yyyy-MM-dd")]
        [DateTimeType("jian_zhang_ri_qi", "建账日期", 23,3)]
        [DisplayName("建账日期")]
        public DateTime JianZhangRiQi { get; set; }

        /// <summary>
        /// 当前所属期
        /// </summary>
        [StringType("suo_shu_qi", "当前所属期", 24, 20)]
        [DisplayName("当前所属期")]
        public string SuoShuQi { get; set; }

        /// <summary>
        /// 缴存金额_住宅
        /// </summary>
        [NumericType("jiao_cun_jin_e_zz", "缴存金额_住宅", 25, 20, 2)]
        [DisplayName("缴存金额_住宅")]
        public decimal JiaoCunJinE_ZZ { get; set; }

        /// <summary>
        /// 使用金额_住宅
        /// </summary>
        [NumericType("shi_yong_jin_e_zz", "使用金额_住宅", 26, 20, 2)]
        [DisplayName("使用金额_住宅")]
        public decimal ShiYongJinE_ZZ { get; set; }

        /// <summary>
        /// 余额_住宅
        /// </summary>
        [NumericType("yu_e_zz", "余额_住宅", 28, 20, 2)]
        [DisplayName("余额_住宅")]
        public decimal YuE_ZZ { get; set; }

        /// <summary>
        /// 缴存金额_电梯
        /// </summary>
        [NumericType("jiao_cun_jin_e_dt", "缴存金额_电梯", 30, 20, 2)]
        [DisplayName("缴存金额_电梯")]
        public decimal JiaoCunJinE_DT { get; set; }

        /// <summary>
        /// 使用金额_电梯
        /// </summary>
        [NumericType("shi_yong_jin_e_dt", "使用金额_电梯", 32, 20, 2)]
        [DisplayName("使用金额_电梯")]
        public decimal ShiYongJinE_DT { get; set; }

        /// <summary>
        /// 余额_电梯
        /// </summary>
        [NumericType("yu_e_dt", "余额_电梯", 34, 20, 2)]
        [DisplayName("余额_电梯")]
        public decimal YuE_DT { get; set; }

        //管理中心 利息 结算到 小区，由小区 再将 利息 结算到 楼栋 ,单元,分户
      
        /// <summary>
        /// 分户利息合计
        /// </summary>
        [NumericType("fen_hu_li_xi", "分户利息合计", 35, 20, 2)]
        [DisplayName("分户利息合计")]
        public decimal FenHuLiXi { get; set; }

        // 以下内容 开启 表示 增值统筹账户 建到 单元 明细帐
        // 楼栋 增值 统筹账户

        /// <summary>
        /// 增值收入金额  结算到 楼栋增值统筹账户的利息 
        /// </summary>
        [NumericType("zeng_zhi_jin_e", "增值收入金额", 36, 20, 2)]
        [DisplayName("增值收入金额")]
        public decimal ZengZhiJinE { get; set; }

        /// <summary>
        /// 增值收益金额 _住宅  从楼栋增值统筹账户 支出的 使用或结息
        /// </summary>
        [NumericType("zeng_zhi_shi_yong", "增值使用金额", 38, 20, 2)]
        [DisplayName("增值使用金额")]
        public decimal ZengZhiShiYong { get; set; }

        /// <summary>
        /// 增值余额 楼栋增值统筹账户余额
        /// </summary>
        [IntegerType("zeng_zhi_yu_e", "增值余额", 40, 20, 2)]
        [DisplayName("增值余额")]
        public decimal ZengZhiYuE { get; set; }

        /// <summary>
        /// 状态：正常,自管,退伙
        /// </summary>
        [StringType("zhuang_tai", "状态", 42, 10)]
        [DisplayName("状态")]
        public ZhuangHuZhuangTai ZhuangTai { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public BookLouDongMingXiZhangModel()
        { }

    }
}
